package frsf.cidisi.exercise.tp2_ia.situationCalculus.actions;


import frsf.cidisi.exercise.tp2_ia.situationCalculus.EstadoAgente;
import frsf.cidisi.exercise.tp2_ia.situationCalculus.EstadoAmbiente;
import frsf.cidisi.faia.agent.situationcalculus.SituationCalculusAction;
import frsf.cidisi.faia.state.AgentState;
import frsf.cidisi.faia.state.EnvironmentState;

public class EndEvent_Goal extends SituationCalculusAction {



    @Override
    public EnvironmentState execute(AgentState ast, EnvironmentState est) {
 	
    	
        EstadoAmbiente environmentState = (EstadoAmbiente) est;
        environmentState.setposicionAgente(EstadoAgente.SUCCESS);
        
        return est;
    }

    @Override
    public String toString() {
        return "endEventGoal";
    }
    
    
}

